
import request from "@/request/request.js";


/**
 * 绑定水卡
 * @param object
 */
export function bindCard(data) {
    return request.post('apicrzs/intake/card/create', data);
}

/**
 * 查询首页水卡
 * @param object
 */
export function checkCard(data) {
    return request.get('apicrzs/intake/card/lists', data);
}

/**
 * 查询充值套餐
 * @param object
 */
export function queryCouponList(data) {
    return request.get('apicrzs/intake/coupon/lists', data);
}
/**
 * 查询附近设备
 * @param object
 */
export function queryMapList(data) {
    return request.get('apicrzs/intake/device/list', data);
}
/**
 * 获取水机信息
 * @param object
 */
export function getEquipmentPlan(data) {
    return request.get('apicrzs/intake/device/getEquipmentPlan', data);
}
/**
 * 检验设备状态
 * @param object
 */
export function getEquipmentOnline(data) {
    return request.get('api/apicrzs/intake/device/online', data);
}
/**
 * 创建扫码接水订单
 * @param object
 */
export function addWaterList(data) {
    return request.post('api/apicrzs/intake/order/create', data);
}
/**
 * 账户支付
 * @param object
 */
export function saveInnerCard(data) {
    return request.post('api/apicrzs/intake/device/start', data);
}
/**
 * 微信支付
 * @param object
 */
export function saveWxPay(data) {
    return request.post('api/apicrzs/intake/order/payment', data);
}

/**
 * 解绑水卡
 * @param object
 */
export function deleteCard(data) {
    return request.delete('apicrzs/intake/card/delete', data);
}

/**
 * IC支付--NEW
 * @param object
 */
export function saveInnerCardNew(data) {
    return request.post('api/apicrzs/intake/order/getICConsume', data);
}